package www.lagou.entity;

import java.io.Serializable;
import java.math.BigDecimal;

public class Transaction implements Serializable {
    //id
    private int id;
    //交易卡号
    private String cardId;
    //交易类型：转入或者转出
    private String traType;
    //交易金额
    private double traMoney;
    //交易日期
    private String traDate;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    public String getTraType() {
        return traType;
    }

    public void setTraType(String traType) {
        this.traType = traType;
    }

    public double getTraMoney() {
        return traMoney;
    }

    public void setTraMoney(double traMoney) {
        this.traMoney = traMoney;
    }

    public String getTraDate() {
        return traDate;
    }

    public void setTraDate(String traDate) {
        this.traDate = traDate;
    }

    @Override
    public String toString() {
        return "交易记录{" +
                "交易流水号=" + id +
                ", 卡号='" + cardId + '\'' +
                ", 交易类型='" + traType + '\'' +
                ", 交易金额=" + traMoney +
                ", 操作日期='" + traDate + '\'' +
                '}';
    }
}
